<?php
/**
 * Created by PhpStorm.
 * User: win7
 * Date: 2018/10/11
 * Time: 11:44
 */

namespace app\admin\controller;

use think\Controller;
use \Util\data\Sysdb;

class Test extends Controller
{
    public function index()
    {
        $this->db = new Sysdb;
        $res = $this->db->table('admins')->field('id,username')->where(array('id'=>1))->item();
        print_r($res);
    }
}